package com.holdtime.jtt809dataservice.business.api;

import com.holdtime.common.utils.general.ApiResponseModel;
import com.holdtime.jtt809dataservice.common.bean.*;

/**
 *  author: sunwei
 *  Date: 2025/3/19 22:09
 *  Description:
 */
public interface ClientLinkService {
    /***
     * 处理下级平台主连接连接应答请求
     * @param clientUpConnectRspDTO
     * @return
     */
    ApiResponseModel<?> dealUpConnectRsp(ClientUpConnectRspDTO clientUpConnectRspDTO);

    /***
     * 处理上级平台主连断开接请求
     * @param clientUpDisConnectInFormDTO
     * @return
     */
    ApiResponseModel<?> dealUpDisConnectInForm(ClientUpDisConnectInFormDTO clientUpDisConnectInFormDTO);

    /***
     * 处理上级平台从链路连接请求
     * @param clientDownConnectReqDTO
     * @return
     */
    ApiResponseModel<Integer> dealDownConnectReq(ClientDownConnectReqDTO clientDownConnectReqDTO);

    /***
     * 处理上级平台从链路断开请求
     * @param clientDownDisconnectReqDTO
     * @return
     */
    ApiResponseModel<?> dealDownDisConnectReq(ClientDownDisconnectReqDTO clientDownDisconnectReqDTO);

    /***
     * 处理上级平台从链路断开通知消息
     * @param clientDownDisConnectInFormDTO
     * @return
     */
    ApiResponseModel<?> dealDownDisConnectInForm(ClientDownDisConnectInFormDTO clientDownDisConnectInFormDTO);
}
